Creating the resources for ShowDialog XCMD Type 2:
The requirements for creating DLOG templates for Type 2 of ShowDialog XCMD with ResEdit are:
The visible and goAwayFlag boxes must be unchecked, and the DLOG and associated DITL resources should be made purgeable.
You MUST have a default button and it MUST be DITL item #1. This is because the first item in the item list is always assumed to be the default button. The Macintosh Toolbox will interpret a press of the Return or Enter key as equivalent to a mouse click in the default button.
In your DITL template, your field (of type Static Text) that will contain the first prompt string must contain the placeholder "^0" (don't use the quotes; and that's a zero) and the field that will contain the second text string must contain the placeholder "^1". If you only want to have one field of static text in your dialog, simply omit the second static text field in the template and pass an empty string in the <second prompt string> parameter.